<!DOCTYPE html>
<html >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form id="uploadForm"  enctype="multipart/form-data" method="post">
    <input type="file" name="file" >
    <input type="file" name="file" >
    <input type="text" name="zh" id="zh" >
    <input id="aaa" type="button">
</form>
</body>
<script src="/Maven_jiaxiao_war_exploded/js/jquery2.2.4.js"></script>
<script>
    $("#aaa").click(function() {
       var a=$("#zh").val();
       alert(a);
        var formData = new FormData($('#uploadForm')[0]);
        $.ajax({
            type : 'post',
            url : '/Maven_jiaxiao_war_exploded/qqq',
            data : formData,
            cache : false,
            processData : false,
            contentType : false,

        }).success(function(data) {
            if(data.indexOf("true")>-1){
                alert("修改成功");
            }else{
                alert("修改失败");
            }
        }).error(function() {
            alert("上传失败");

        });
    });
</script>
</html>